package com.itrustsolution.rms.entities;
// Generated 25 Mei 11 22:19:57 by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * TckTicketType generated by hbm2java
 */
@Entity
@Table(name="tck_ticket_type"
    ,catalog="rms"
)
public class TckTicketType  implements java.io.Serializable {


     private Integer ticketTypeId;
     private String ticketTypeName;
     private boolean ticketTypeIsactive;
     private boolean ticketTypeIsdeleted;
     private Set<TckTicket> tckTickets = new HashSet(0);

    public TckTicketType() {
    }

	
    public TckTicketType(String ticketTypeName, boolean ticketTypeIsactive, boolean ticketTypeIsdeleted) {
        this.ticketTypeName = ticketTypeName;
        this.ticketTypeIsactive = ticketTypeIsactive;
        this.ticketTypeIsdeleted = ticketTypeIsdeleted;
    }
    public TckTicketType(String ticketTypeName, boolean ticketTypeIsactive, boolean ticketTypeIsdeleted, Set tckTickets) {
       this.ticketTypeName = ticketTypeName;
       this.ticketTypeIsactive = ticketTypeIsactive;
       this.ticketTypeIsdeleted = ticketTypeIsdeleted;
       this.tckTickets = tckTickets;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="TICKET_TYPE_ID", unique=true, nullable=false)
    public Integer getTicketTypeId() {
        return this.ticketTypeId;
    }
    
    public void setTicketTypeId(Integer ticketTypeId) {
        this.ticketTypeId = ticketTypeId;
    }
    
    @Column(name="TICKET_TYPE_NAME", nullable=false, length=20)
    public String getTicketTypeName() {
        return this.ticketTypeName;
    }
    
    public void setTicketTypeName(String ticketTypeName) {
        this.ticketTypeName = ticketTypeName;
    }
    
    @Column(name="TICKET_TYPE_ISACTIVE", nullable=false)
    public boolean isTicketTypeIsactive() {
        return this.ticketTypeIsactive;
    }
    
    public void setTicketTypeIsactive(boolean ticketTypeIsactive) {
        this.ticketTypeIsactive = ticketTypeIsactive;
    }
    
    @Column(name="TICKET_TYPE_ISDELETED", nullable=false)
    public boolean isTicketTypeIsdeleted() {
        return this.ticketTypeIsdeleted;
    }
    
    public void setTicketTypeIsdeleted(boolean ticketTypeIsdeleted) {
        this.ticketTypeIsdeleted = ticketTypeIsdeleted;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="tckTicketType")
    public Set<TckTicket> getTckTickets() {
        return this.tckTickets;
    }
    
    public void setTckTickets(Set<TckTicket> tckTickets) {
        this.tckTickets = tckTickets;
    }




}


